#ifndef JAVASCRIPTAPI_H
#define JAVASCRIPTAPI_H

#include <QObject>
#include <QtNetwork/QHostInfo>
#include <QCryptographicHash>
#include <proxydlg.h>

#include "javascriptapi_global.h"

class JavaScriptApi_EXPORT JavaScriptApi : public QObject
{
    Q_OBJECT
public:
    explicit JavaScriptApi(QObject *parent = 0);
    
signals:
    void OpenProxySettings();

private:
    QString *key;
    void generateKey();
    
public slots:
    QString getUsers();
    void setUsers(QString);
    QString codePassword(QString);
    void ProxySettings();
};

#endif // JAVASCRIPTAPI_H
